<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">
<head>
  <meta name="copyright" content=
  "Copyright (c) IBM Corporation and others 2000, 2013. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="Content-Style-Type" content="text/css">
  <link rel="STYLESHEET" href="../book.css" charset="ISO-8859-1" type="text/css">
  <title>Closing an editor</title>
  <script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js" type="text/javascript"></script>
</head>
<body bgcolor="#FFFFFF">
  <h1>Closing an editor</h1>
  <p class="Para">Now that there are a couple of editors open, here's how to close them.</p>
  <ol>
    <li>
      <p class="Para">Select the editor tab showing the first .txt file.</p>
    </li>
    <li>
      <p class="Para">In the text area add a 6th line of text:</p>
      <blockquote>
        <p class="Para">This is a 6th line</p>
      </blockquote>
    </li>
    <li>
      <p class="Para">To close the editor, choose one of the following options:</p>
      <ul>
        <li>
          <p class="Para">Click the close button ("X") <img src="../images/Image19_close_on_tab.png" width="122" alt=
          "Editor Tab" border="0"> in the tab of the editor.</p>
        </li>
        <li>
          <p class="Para">Select <b>File &gt; Close</b> from the menu bar.</p>
        </li>
      </ul>
    </li>
    <li>
      <p class="Para">Note the prompt to save the file before the editor is closed.</p>
    </li>
    <li>
      <p class="Para">Click OK to save any changes and close the editor.</p>
    </li>
  </ol>
  <p>If the editor was closed using <b>File &gt; Close</b>, notice that the option <b>File &gt; Close All</b> was also
  displayed. This is a quick way to close all of the open editors. If <b>File &gt; Close All</b> is chosen, a prompt
  will appear to choose which editors with unsaved changes should be saved.</p>
  <p>The preference to close editors automatically can be found in the <a class="command-link" href=
  'javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.ui.preferencePages.Editors)")'>
  <img src="PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt="command link"> <b>General &gt; Editors</b></a>
  preference page. There you can configure the number of editors that can be opened prior to editors being reused and
  what should occur when all editors have unsaved changes.</p>
</body>
</html>
